#!/bin/bash
PROJECTNAME=wallpaper
DYLIBNAME=${PROJECTNAME}.dylib
BUILDDIR=/Library/MobileSubstrate/${PROJECTNAME}

/bin/rm -f ${BUILDDIR}/${DYLIBNAME}
/bin/sleep 1
/bin/cp -r ${DYLIBNAME} ${BUILDDIR}

/usr/bin/ldid -S ${BUILDDIR}/${DYLIBNAME}
/bin/chmod 755 ${BUILDDIR}/${DYLIBNAME}

/bin/rm -f ${DYLIBNAME}

/bin/Respring

